package com.d3works.apps.supplychain.job;

import com.d3works.apps.base.job.ThreadedBaseJob;
import com.d3works.apps.base.job.UncheckedJobExecutionException;
import com.d3works.apps.supplychain.db.repo.SupplychainBatchRepository;
import com.d3works.apps.supplychain.service.batch.SupplychainBatchService;
import org.quartz.JobExecutionContext;

public class BillSubJob extends ThreadedBaseJob {
  @Override
  public void executeInThread(JobExecutionContext context) {
    try {
      executeBatch(SupplychainBatchService.class, SupplychainBatchRepository.CODE_BATCH_BILL_SUB);
    } catch (Exception e) {
      throw new UncheckedJobExecutionException(e);
    }
  }
}
